package com.hrt.web.mailRecord.service;

import java.sql.Timestamp;

import com.hrt.bean.MailRecord;

public interface MailRecordService{
	public void saveMailRecord(MailRecord mailRecord)throws Exception;
	/**
	 * 获取数据库当前时间
	 * @return
	 */
	
	public Timestamp getDate();
	
	/**
	 * 通过邮件查找验证码
	 * @param mail 邮件
	 * @return
	 */
	public MailRecord getCodeByMail(String mail);
	void updateMailRecord(MailRecord mailRecord) throws Exception;
	
	//发送邮件
	public void sendMail(String toMail,String jym);
}
